package com.kkm.service;

import com.kkm.pojo.Goods;
import com.kkm.pojo.Order;
import com.kkm.pojo.PageBean;

import java.util.Map;

public interface GoodsService  {
    PageBean<Goods> selectAll(String currentPage, int rows);
    PageBean<Goods>  checkGoods(Map<String, String[]> condition, String currentPage, int rows);

    void deleteGoods(int gid);

    Goods goodsById(int gid);

    void modifyGoods(double price, int number, int oid);


    void addGoods(String gname, double price, int number, String gtype);
}
